//
//  ViewController.m
//  aaaa
//
//  Created by 黄世光 on 15/10/28.
//  Copyright © 2015年 SHG. All rights reserved.
//

#import "ViewController.h"
#import "BViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor redColor];
    UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
    button.frame=CGRectMake(100, 100, 100, 100);
    button.backgroundColor=[UIColor yellowColor];
    [button addTarget:self action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    // Do any additional setup after loading the view, typically from a nib.
}
-(void)buttonClick{
    CustomAlertView *alert=[[CustomAlertView alloc]initWithTitle:@"正在进行集分操作" Cancelbutton:@"取消" OtherButton:@"确定积分" SuperView:self.view];
    //	[alert setAlertBackgroundImage:@"bg"];
    [alert setBackgroundColor:[UIColor orangeColor]];
    [alert alertShow];

    
//    BViewController *b=[[BViewController alloc]init];
//    [self presentViewController:b animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
